import { createRouter, createWebHistory } from 'vue-router';

import {staticRouter, errorRouter } from './modules/staticRouters';

const router = createRouter({
    history:createWebHistory(),
    routes:[...staticRouter,...errorRouter],
    strict:false,
    scrollBehavior (to, from, savedPosition) {
        // ...
        console.log(to, from, savedPosition)
    }
})

export default router;
